<?php $news = $this->News->all() ?>
<h1>&Uacute;ltimas Not&iacute;cias</h1>
<?php if (empty($news)): ?>
	<div class="info"><div class="message">Nenhuma not&iacute;cia postada no momento.</div></div>
<?php else: ?>
	<ul class="notice">
	<?php foreach ($news as $news): ?>
		<li>
			<?php echo convert_type_news($news['type']) ?> <?php echo $this->link($news['title'], '/news/' . $news['id']) ?>
			<p class="date">Postada por <?php echo $news['author'] ?> em <?php echo $news['created'] ?></p>
            <p><?php echo $this->truncate($news['body'], 190, ' ...') ?></p>
		</li>
	<?php endforeach ?>
	</ul>
<?php endif ?>